package com.xusheng.cli.serviceImpl;

import cn.hutool.core.date.DateTime;
import com.xusheng.cli.common.base.MyServiceImpl;
import com.xusheng.cli.entity.downloadStatisticsModule.DownloadStatistics;
import com.xusheng.cli.mapper.DownloadStatisticsMapper;
import com.xusheng.cli.service.DownloadStatisticsService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 下载统计表(DownloadStatistics)表服务实现类
 *
 * @author whr
 * @since 2024-06-24 15:21:29
 */
@Service("downloadStatisticsService")
public class DownloadStatisticsServiceImpl extends MyServiceImpl<DownloadStatisticsMapper, DownloadStatistics> implements DownloadStatisticsService {
    /**
     * @return
     */
    @Override
    public List<Map<String, Integer>> addrCount(int type, DateTime startTime, DateTime endTime) {
        return baseMapper.addrCount(type, startTime, endTime);
    }

    /**
     * @param type
     * @param startTime
     * @param endTime
     * @return
     */
    @Override
    public List<Map<String, Integer>> hostCount(int type, DateTime startTime, DateTime endTime) {
        return baseMapper.hostCount(type, startTime, endTime);
    }
}

